﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._211217
{
    /// <summary>
    ///  添加事件
    /// </summary>
    public class InputAddMemoRemind
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码必传！")]
        public string userID { get; set; }
        /// <summary>
        ///  事件id
        /// </summary>
        [Required]
        public int memoID { get; set; }
        /// <summary>
        ///  内容
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        ///  提醒类型
        /// </summary>
        [Required(ErrorMessage = "提醒类型必传！")]
        public string Type { get; set; }
        /// <summary>
        ///  备忘日期 格式：【yyyy-MM-dd】
        /// </summary>
        [Required(ErrorMessage = "备忘日期必传！")]
        public string Date { get; set; }
        /// <summary>
        ///  提醒时间 格式：【HH:mm】
        /// </summary>
        [Required(ErrorMessage = "提醒时间必传！")]
        public string Time { get; set; }
        /// <summary>
        ///  提醒球颜色，存1到5，用5个数字代表五种颜色
        /// </summary>
        [Required]
        [RegularExpression("^[1-5]{1}$", ErrorMessage = "请按要求输入提醒球颜色！")]//大于0正则表达式
        public int colorNum { get; set; }
        /// <summary>
        ///  首页提醒
        /// </summary>
        [Required]
        public bool indexRemind { get; set; }
    }
}